const state = {
  role: null,//账号角色
  tabItem:"1"
};

const getters = {
  /* 判断账号角色 */
  roleRouter(state) {
    switch (state.role) {
      case "2":
        return true;
      case "3":
        return false;
      default:
        return false;
    }
  },
}

const mutations = {
  /* 账号角色 */
  roleAction(state,param){
    state.role = param;
  },
  /* 导航栏item */
  tabItemHandle(state,param){
    state.tabItem = param;
  }
};

const actions = {

};

export default {
  namespaced: true,
  state,
  getters,
  mutations,
  actions
}